/*
 *
 * Copyright (c) 2005-2012 Imperas Software Ltd., www.imperas.com
 *
 * The contents of this file are provided under the Software License
 * Agreement that you accepted before downloading this file.
 *
 * This source forms part of the Software and can be used for educational,
 * training, and demonstration purposes but cannot be used for derivative
 * works except in cases where the derivative works require OVP technology
 * to run.
 *
 * For open source models released under licenses that you can use for
 * derivative works, please visit www.OVPworld.org or www.imperas.com
 * for the location of the open source models.
 *
 */

#include <stdio.h>
#include <string.h>
#include "applicationRegisters.h"
typedef unsigned int Uns8;

static inline Uns8 readReg8(Uns8 address, Uns8 offset)
{
    return *(volatile Uns8*) (address + offset);
}

int main(int argc, char **argv)
{
	printf("###############################################\n");
	printf("############## APPLICATION START ##############\n");
	printf("###############################################\n\n");
    
	/* read back BYTEREAD register values */
	int i;
	for(i = 0; i < 16; i++) {
		printf("BYTEREADC Register Read %08x\n", readReg8(BYTEREAD_BASE, BYTEREAD_C0_DATA_ADDR));
	}
	
	printf("\n###############################################\n");
	printf("############## APPLICATION END ################\n");
	printf("###############################################\n");

    return 1;
}

